import { functionCommon, requestCommon } from "@whzhuke/common"

export default {
  list: (params: any) => {
    return requestCommon.get<any>({
      url: `${functionCommon.requestHost("api")}/v1/api/enter/out/`,
      params
    })
  },//获取报关出口分页列表
  save: (params: any) => {
    return requestCommon.postJson<any>({
      url: `${functionCommon.requestHost("api")}/v1/api/enter/out/`,
      params
    })
  },//保存报关出口
  edit: (params: any) => {
    return requestCommon.put<any>({
      url: `${functionCommon.requestHost("api")}/v1/api/enter/out/`,
      params
    })
  },//修改报关出口
  item: (params: any) => {
    return requestCommon.get<any>({
      url: `${functionCommon.requestHost("api")}/v1/api/enter/out/${params.id}`
    })
  },//查询报关出口详情
  send: (params: any) => {
    return requestCommon.postJson<any>({
      url: `${functionCommon.requestHost("api")}/v1/api/enter/out/send`,
      params
    })
  }//发送报关出口消息

}
